<script src="lib/bootstrap-datepicker.js"></script>
<script src="lib/plupload-2.1.2/js/plupload.full.min.js"></script>

<div class="row">
    <div class="col-lg-12">
        <div class="panel panel-primary">
            <div class="panel-heading">
                <strong>
                    <div ng-hide="id">
                        随访信息
                    </div>
                </strong>
            </div>

            <div class="panel-body">
                <div class="form-group" ng-show="error_msg">
                    <div class="col-sm-offset-1 col-sm-11">
                        <div class="alert alert-danger" role="alert">{{error_msg}}</div>
                    </div>
                </div>

                <div class="row row_item">
                    <div class="span6 col-sm-3">
                        <label for="name" class="col-sm-5 control-label">姓名</label>
                        <div id="name" class="col-sm-7 ">
                            {{patient.name}}
                        </div>
                    </div>

                    <div class="span6 col-sm-3">
                        <label for="gender" class="col-sm-5 control-label">性别</label>
                        <div id="gender" class="col-sm-7 ">
                            <div ng-if="patient.gender == 1">
                                男
                            </div>

                            <div ng-if="patient.gender == 2">
                                女
                            </div>
                        </div>
                    </div>

                    <div class="span6 col-sm-3">
                        <label for="age" class="col-sm-5 control-label">年龄</label>
                        <div id="age" class="col-sm-7 ">
                            {{patient.age}}
                        </div>
                    </div>
                </div>


                <div class="row row_item">
                    <div class="span6 col-sm-3">
                        <label for="cardno" class="col-sm-5 control-label">病历号</label>
                        <div id="cardno" class="col-sm-7 ">
                            {{patient.cardno}}
                        </div>
                    </div>

                    <div class="span6 col-sm-3">
                        <label for="phone" style="display:inline-block;" class="col-sm-5 control-label">联系患者</label>
                        <div id="phone" class="col-sm-7 ">
                            {{patient.phone}}
                        </div>
                    </div>

                    <div class="span6 col-sm-3">
                        <label for="firsttime" class="col-sm-5 control-label">首次诊断</label>
                        <div id="firsttime" class="col-sm-7 ">
                            {{patient.firstvistime | date: 'yyyy-MM-dd'}}
                        </div>
                    </div>

                    <div class="span6 col-sm-3">
                        <label for="disease" class="col-sm-5 control-label">疾病分类</label>
                        <div id="disease" class="col-sm-7 ">
                            {{patient.disease.name}}
                        </div>
                    </div>
                </div>

                <!-- 医院 医生 科室 -->
                <div class="row row_item">
                    <div class="span6 col-sm-3">
                        <label for="hospital" class="col-sm-5 control-label">医院</label>
                        <div id="hospital" class="col-sm-7 ">
                            {{patient.hospital.name}}
                        </div>
                    </div>

                    <div class="span6 col-sm-3">
                        <label for="doctor" style="display:inline-block;" class="col-sm-5 control-label">医生</label>
                        <div id="doctor" class="col-sm-7 ">
                            {{patient.doctor.name}}
                        </div>
                    </div>

                    <div class="span6 col-sm-3">
                        <label for="office" class="col-sm-5 control-label">科室</label>
                        <div id="office" class="col-sm-7 ">
                            {{patient.office.name}}
                        </div>
                    </div>
                </div>
                <!-- 主诉 诊断-->

                <div class="row row_item">
                    <div class="span6 col-sm-8">
                        <label for="chief_complaint" class="col-sm-2 control-label">主诉</label>
                        <div id="chief_complaint" class="col-sm-10 ">
                            {{patient.chief_complaint}}
                        </div>
                    </div>
                </div>
                <div class="row row_item">
                    <div class="span6 col-sm-8">
                        <label for="diagnosis" class="col-sm-2 control-label">诊断</label>
                        <div id="diagnosis" class="col-sm-10">
                            {{patient.diagnosis}}
                        </div>
                    </div>
                </div>

                <!-- 治疗前检验-->
                <div class="row row_item">
                    <div class="span6 col-sm-8">
                        <label for="diagnosis" class="col-sm-2 control-label">治疗前检验</label>
                        <div class="col-sm-10">
                            <a ng-show="patient.before_examin" href="{{patient.before_examin.url}}" target="_blank">{{patient.before_examin.desc}}</a>
                        </div>
                    </div>
                </div>
                <!-- 治疗前检查-->
                <div class="row row_item">
                    <div class="span6 col-sm-8">
                        <label for="diagnosis" class="col-sm-2 control-label">治疗前检查</label>
                        <div class="col-sm-10">
                            <a ng-show="patient.before_check" href="{{patient.before_check.url}}" target="_blank">{{patient.before_check.desc}}</a>
                        </div>
                    </div>
                </div>
                <!-- 治疗前诊断-->
                <div class="row row_item">
                    <div class="span6 col-sm-8">
                        <label for="diagnosis" class="col-sm-2 control-label">治疗前评估</label>
                        <div class="col-sm-10">
                            <a ng-show="patient.before_evaluation" href="{{patient.before_evaluation.url}}" target="_blank">{{patient.before_evaluation.desc}}</a>
                        </div>
                    </div>
                </div>

                <!--手术方案 -->
                <div class="row row_item">
                    <div class="span6 col-sm-8">
                        <label for="diagnosis" class="col-sm-2 control-label">手术方案</label>
                        <div class="col-sm-10">
                            {{patient.operation_solution}}
                        </div>
                    </div>
                </div>
                <!-- Abioc -->
                <div class="row row_item">
                    <div class="span6 col-sm-8">
                        <label for="diagnosis" class="col-sm-2 control-label">ABioC方案</label>
                        <div class="col-sm-10">
                            {{patient.abioc_solution}}
                        </div>
                    </div>
                </div>

                <!-- 外周血 PLT 体积 次数  -->
                <div class="row row_item">
                    <div class="span6 col-sm-3">
                        <label for="wzblood" class="col-sm-5 control-label">外周血</label>
                        <div id="wzblood" class="col-sm-7 ">
                            {{patient.wzblood}}
                        </div>
                    </div>

                    <div class="span6 col-sm-3">
                        <label for="plt" style="display:inline-block;" class="col-sm-5 control-label">plt浓度</label>
                        <div id="plt" class="col-sm-7 ">
                            {{patient.plt}}
                        </div>
                    </div>

                    <div class="span6 col-sm-3">
                        <label for="wz_volume" class="col-sm-5 control-label">使用体积</label>
                        <div id="wz_volume" class="col-sm-7 ">
                            {{patient.wz_volume}}
                        </div>
                    </div>

                    <div class="span6 col-sm-3">
                        <label for="treat_times" class="col-sm-5 control-label">治疗次数</label>
                        <div id="treat_times" class="col-sm-7 ">
                            {{patient.treat_times}}
                        </div>
                    </div>
                </div>

                <!-- 骨髓血 PLT 体积 次数  -->
                <div class="row row_item">
                    <div class="span6 col-sm-3">
                        <label for="boneblood" class="col-sm-5 control-label">骨髓血</label>
                        <div id="boneblood" class="col-sm-7 ">
                            {{patient.boneblood}}
                        </div>
                    </div>

                    <div class="span6 col-sm-3">
                        <label for="cell" style="display:inline-block;" class="col-sm-5 control-label">细胞浓度</label>
                        <div id="cell" class="col-sm-7 ">
                            {{patient.cell}}
                        </div>
                    </div>

                    <div class="span6 col-sm-3">
                        <label for="cell_volume" class="col-sm-5 control-label">使用体积</label>
                        <div id="cell_volume" class="col-sm-7 ">
                            {{patient.cell_volume}}
                        </div>
                    </div>

                    <div class="span6 col-sm-3">
                        <label for="cell_treat_times" class="col-sm-5 control-label">治疗次数</label>
                        <div id="cell_treat_times" class="col-sm-7 ">
                            {{patient.cell_treat_times}}
                        </div>
                    </div>
                </div>

                <div class="label-primary row divider">
                    <div class="span6 col-sm-8">
                        <label for="diagnosis" class="col-sm-2 control-label panel-primary">随访记录</label>
                        <div class="col-sm-10">
                        </div>
                    </div>
                </div>

                <!-- 随访记录 --->
                <div ng-repeat="v in vistracks">
                    <div class="row_section">
                        <div class="row">
                            <div class="span6 col-sm-8">
                                <label for="diagnosis" class="col-sm-2 control-label panel-primary">{{v.vistrack_time | date: 'yyyy-MM-dd'}}</label>
                                <div class="col-sm-10">
                                </div>
                            </div>
                        </div>

                        <!-- 治疗后检验-->
                        <div class="row row_item">
                            <div class="span6 col-sm-8">
                                <label for="diagnosis" class="col-sm-2 control-label">治疗后检验</label>
                                <div class="col-sm-10">
                                    <a ng-show="v.after_examin" href="{{v.after_examin.url}}" target="_blank">{{v.after_examin.desc}}</a>
                                </div>
                            </div>
                        </div>
                        <!-- 治疗前检查-->
                        <div class="row row_item">
                            <div class="span6 col-sm-8">
                                <label for="diagnosis" class="col-sm-2 control-label">治疗后检查</label>
                                <div class="col-sm-10">
                                    <a ng-show="v.after_check" href="{{v.after_check.url}}" target="_blank">{{v.after_check.desc}}</a>
                                </div>
                            </div>
                        </div>
                        <!-- 治疗前诊断-->
                        <div class="row row_item">
                            <div class="span6 col-sm-8">
                                <label for="diagnosis" class="col-sm-2 control-label">治疗后评估</label>
                                <div class="col-sm-10">
                                    <div>
                                        <a ng-show="v.after_evaluation" href="{{v.after_evaluation.url}}" target="_blank">{{v.after_evaluation.desc}}</a>
                                    </div>
                                </div>
                            </div>
                        </div>

                        <!--手术方案 -->
                        <div class="row row_item">
                            <div class="span6 col-sm-8">
                                <label for="diagnosis" class="col-sm-2 control-label">医生评价</label>
                                <div class="col-sm-10">
                                    {{v.evaluation}}
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>